<template>
  <div class="adjust">
    <div class="top">产品列表</div>
    <div class="box">
      <div class="left-box">
        <div class="input">
          <el-input
            size="mini"
            placeholder="搜索"
            prefix-icon="el-icon-search"
          ></el-input>
        </div>
        <ul class="list" v-for="i in 3" :key="i">
          <li>
            <div class="subtit">类别A</div>
            <ul class="sublist">
              <el-checkbox-group v-model="checkList">
                <li v-for="i in 5" :key="i">
                  <el-checkbox :label="'选项名称' + i"
                    >选项名称{{ i }}</el-checkbox
                  >
                </li>
              </el-checkbox-group>
            </ul>
          </li>
        </ul>
      </div>
      <div class="right-box">
        <div class="d1">
          <span class="s1">已选{{ checkList.length }}项</span>
          <span class="s2">清空</span>
        </div>
        <ul>
          <li v-for="itme in checkList" :key="itme">{{ itme }}</li>
        </ul>
      </div>
    </div>
    <div class="button">
      <div class="leftBtn">恢复产品</div>
      <div class="rightBtn">完成调整</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      checkList: [],
    };
  },
  methods: {},
};
</script>

<style scoped lang="less">
.top {
  height: 50px;
  line-height: 50px;
  background-color: rgba(249, 249, 249, 1);
  color: #00b890;
  font-size: 16px;
  text-align: center;
}
.box {
  width: 400px;
  margin: 0 auto;
  display: flex;
  height: 320px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 50px;
  .left-box {
    height: 100%;
    overflow-y: auto;
    padding: 8px;
    width: 180px;
    &::-webkit-scrollbar {
      width: 3px;
    }
    &::-webkit-scrollbar-thumb {
      width: 3px;
      background: #999;
      border-radius: 20px;
    }
    .subtit {
      color: #999;
      padding: 5px 0;
    }
    .sublist {
      li {
        margin-bottom: 5px;
      }
    }
  }
  .right-box {
    padding: 15px;
    width: 150px;
    border-left: 1px solid #ccc;
    &::-webkit-scrollbar {
      width: 3px;
    }
    &::-webkit-scrollbar-thumb {
      width: 3px;
      background: #999;
      border-radius: 20px;
    }
    .d1 {
      .s1 {
        color: #999;
      }
      .s2 {
        font-size: 15px;
        // font-weight: bold;
        margin-left: 15px;
      }
    }
    > ul {
      margin-top: 20px;
      li {
        margin-bottom: 10px;
        // font-weight: bold;
      }
    }
  }
}
.button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 400px;
  margin: 0 auto;
}
.leftBtn,
.rightBtn {
  width: 100px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.leftBtn {
  border: 1px solid rgba(164, 173, 179, 1);
  color: #a4adb3;
}
.rightBtn {
  border: 1px solid rgba(0, 184, 144, 1);
  color: #fff;
  background-color: #00b890;
}
</style>